package top.caoayu.base.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户表
    */
@ApiModel(description="用户表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(value = {"handler"})
@ExcelTarget("SysUser")
public class SysUser {
    /**
    * ID
    */
    @Excel(name = "ID",width = 20)
    @ApiModelProperty(value="ID")
    private Long id;

    /**
    * 用户名
    */
    @Excel(name = "用户名")
    @ApiModelProperty(value="用户名")
    private String userName;

    /**
    * 密码
    */
    @Excel(name = "密码")
    @ApiModelProperty(value="密码")
    private String userPassword;

    /**
    * 邮箱
    */
    @Excel(name = "邮箱")
    @ApiModelProperty(value="邮箱")
    private String userEmail;

    /**
    * 简介
    */
    @ApiModelProperty(value="简介")
    private String userInfo;

    /**
    * 头像
    */
    @ApiModelProperty(value="头像")
    private byte[] headImg;

    /**
    * 创建时间
    */
    @Excel(name = "创建时间",format = "yyyy-MM-dd HH:mm:ss",width = 20)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    private List<SysRole> roles;

    private String test;
}